<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> {$sitename} / <a href="{url('special/index')}">特性或专题</a>{$path}</div>
<div class="m10">
<div class="table-head"><a href="{url('special/index',array('id'=>$pid))}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a><strong>添加特性或专题</strong></div>
<div class="table-tipbox">
<div class="tipbox tipbox-wait">
    <div class="tipbox-icon"><i class="iconfont" title="警告">&#xf05a;</i></div>
    <div class="tipbox-content">
        <h3 class="tipbox-title">友情提示：栏目绑定公共特性提交以后将禁止被修改，子栏目继承根栏目的绑定。</h3>
        <p class="tipbox-explain">资源特性可用于专题的制作和资源内容的属性设定。如：推荐、热点等</p>
    </div>
</div>
</div>
<form id="form" action="{url('special/edit')}">
<input type="hidden" name="fid" value="{$fid}"/>
<input type="hidden" name="pid" value="{if $pid}{$pid}{else}{intval($info['pid'])}{/if}"/>
{if !$fid && $pid}<input type="hidden" name="channel_id" value="{$list['channel_id']}"/>{/if}
<table class="table">
{if !$website_id && !$fid && !$pid}
    <tr><th>所属站点:</th><td>
<select id="website_id" class="select" name="website_id" datatype="*">
    <option value="">请选择所属站点</option>
{loop $website $vo}
    <option value="{$vo['id']}" {if $info['website_id'] == $vo['id']}selected="selected"{/if}>{$vo['title']} [ http://{$vo['url']} ]</option>
{/loop}
</select>
    </td></tr>
{/if}
{if !$fid && !$pid}
<tr><th>公共特性:</th><td>
<select id="channel_id" name="channel_id" class="select" datatype="*" nullmsg="必须选择绑定模型">
<option value="0">全站特性</option> 
{loop $list $rs}<option value="{$rs['id']}">{$rs['name']}</option>{/loop}
</select></td></tr>
{/if}
    <tr><th>资源名称:</th><td><input class="input w300" datatype="s" type="text" value="{$info['name']}" name="name" /><span class="vform"></span></td></tr>
    <tr><th>资源模板:</th><td><input class="input w200" type="text" id="tpl_list" value="{$info['tpl_list']}" name="tpl_list" /><input url="{url('admin/tpl/index',array(id=>'tpl_list'))}" title="模板选择" value="模板选择" type="button" class="button win" /></td></tr>
    <tr><th>内容模板:</th><td><input class="input w200" type="text" id="tpl_content" value="{$info['tpl_content']}" name="tpl_content" /><input url="{url('admin/tpl/index',array(id=>'tpl_content'))}" title="模板选择" value="模板选择" type="button" class="button win" /></td></tr>
</table>
<div class="btn fn-tac">
    <a href="{url('special/index',array('id'=>$pid))}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a>
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','dialog','form',function(){
    $(".win").click(function(){$(this).win();});
    $('#form').forms();
{if !$website_id && !$pid}
    $('#website_id').change(function(){
        $('#website_id').liandong('channel_id','{url('special/liandong')}');
    })
{/if}
})
</script>